#ifndef __FONT_H
#define __FONT_H       

#include "component.h"
#include "gd32f30x.h"


#define LINE(x) ((x) * (((sFONT *)LCD_GetFont())->Height))
#define LINEY(x) ((x) * (((sFONT *)LCD_GetFont())->Width))

/** @defgroup FONTS_Exported_Types
  * @{
  */ 
typedef struct _tFont
{    
	const uint8_t *table;
	uint16_t Width;
	uint16_t Height;
}sFONT;

extern sFONT Font12x24;
extern sFONT Font16x32;
extern sFONT Font20x32;

#endif /*end of __FONT_H    */
